import {TypedUseSelectorHook, useDispatch, useSelector} from 'react-redux';
import {AppDispatch, RootState} from '.';

// 封装useDispatch hook
export const useAppDispatch = () => useDispatch<AppDispatch>();
// 封装useSelector hook
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
